{{extend "forums_layout.html"}}

{{block content_main}}


{{from forumsEX.views import userimage}}
{{from uliweb.utils.timesince import timesince}}

<link rel="stylesheet" type="text/css" media="screen" href="/static/css/share.css">



<div class="box">
    
    <div class="cell" style="background-color: #f9f9f9; padding: 10px 10px 10px 20px;"><div class="fr"><a >学习让人进步</a>&nbsp; <li class="icon-caret-right gray"></li></div>分享带来快乐</div>
    
    



{{for topic in top20:}}

<div class="cell item" style=""><div style="position: absolute; margin: -10px -10px 0px 650px;"></div>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tbody><tr>
            
            <td width="48" valign="top" align="center"><a href="#"><img src="{{=userimage(topic)}}" class="avatar" border="0" align="default"></a></td>
            <td width="10"></td>
            
            <td width="auto" valign="middle"><span class="item_title"><a href="/forumsEX/topic/{{=topic.id}}">{{=topic.subject}}</a></span>
            <div class="sep5"></div>
            <span><div class="votes"></div><a class="node" href="#">{{=topic.forum.name}}</a> &nbsp;•&nbsp; <strong><a class="author" href="#">{{=topic.posted_by.username}}</a></strong> &nbsp;•&nbsp; {{=timesince(topic.last_reply_on)}} &nbsp;•&nbsp; 最后回复来自 <strong><a href="#">{{=topic.last_post_user.username}}</a></strong></span>
            </td>
            <td width="50" align="right" valign="middle">
                
                <a href="#" class="count_livid">{{=topic.num_replies}}/{{=topic.num_views}}</a>
                
            </td>
        </tr>
    </tbody></table>
</div>
{{pass}}







    <div class="inner">
        <span class="chevron">→</span> <a href="#">更多新主题</a>
    </div>
</div>


<!--box-->
<div class="box">
    <div class="cell"><div class="fr"><a href="#">全部节点</a></div><span><strong></strong> / 节点导航</span></div>

{{for k in cate.keys():}}
    <div class="inner"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td align="right" width="60"><span class="btn">{{=k}}</span></td><td style="line-height: 200%; padding-left: 10px;">

{{for v in cate[k]:}}
<a href="/forumsEX/{{=v.id}}" style="font-size: 14px;" class="btn btn-primary">{{=v.name}}</a>&nbsp; &nbsp; 
{{pass}}

</td></tr></tbody></table></div>
</div>


{{end}}
